﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ProductManagement;
using Digitalmes.Model;
using Digitalmes.Model.WmsManagement;

namespace Digitalmes.ViewModel.ProductManagement.ProductVMs
{
    public partial class ProductBatchVM : BaseBatchVM<Product, Product_BatchEdit>
    {
        public ProductBatchVM()
        {
            ListVM = new ProductListVM();
            LinkedVM = new Product_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Product_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._Product._Name")]
        public string Name { get; set; }
        [Display(Name = "_Model._Product._ErpCode")]
        public string ErpCode { get; set; }
        [Display(Name = "_Model._Product._Material")]
        public long? MaterialId { get; set; }
        [Display(Name = "_Model._Product._Active")]
        public bool? Active { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}